PaperSize

public final static PaperSize PaperSize(Double width, Double height, PaperSize.Unit unit, String name)
public final static PaperSize PaperSize(Double width, Double height, PaperSize.Unit unit, String name)

Creates a new instance of PaperSize with the given parameters.

Since

8.0.0

Parameters

width

The width of the paper.

height

The height of the paper.

unit

The width and height measurement unit.

name

The name of the paper size.

Throws

if width or height is negative, or if name is empty or blank.